<template>
<div>
<h2 class='name'>晚上吃{{food}}</h2>

</div>
</template>

<script>
export default {
    name:'School',
    data(){
        return {
            food:'屁'
        }
    }
    ,mounted(){
        if(this.$route.query.food){
            this.food = this.$route.query.food
        }
        if(this.$route.params.food){
            this.food = this.$route.params.food
        }
    }
}
</script>


<style>

</style>